package com.example.demo.service;

import com.example.demo.mapper.User_mapper;
import com.example.demo.pojo.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class User_serviceImpl implements User_service{
    @Autowired
    User_mapper userMapper;
    @Override
    public List<user> findAll() {
        List<user> all = userMapper.findAll();
        return all;
    }

    @Override
    public List<user> findAllTea() {
        List<user> allTea = userMapper.findAllTea();
        return allTea;
    }

    @Override
    public List<user> findAllStu() {
        List<user> allstu = userMapper.findAllStu();
        return allstu;
    }
}
